package Day19;

/**
 * @author hyhWTX
 * @version 1.0
 * @date 2022年03月19日 16:14
 */


public class Test {
    public static void main(String[] args) {
        Shape[] shape = new Shape[1];
        shape[0] = new Circle(3);
        System.out.println("圆形的周长和面积");
        System.out.println(String.format("%.2f", shape[0].getArea()));
        System.out.println(shape[0].getPerimeter());
    }
}
